<?php
/*
function __autoload($class_name) {
    include_once dirname(__FILE__).'/classes/'.strtolower($class_name).'.php';
}
 * 
 */
include_once dirname(__FILE__).'/classes/baseclass.php';
function classLoader(){
    $class_name=func_get_arg(0);
    include_once dirname(__FILE__).'/classes/'.strtolower($class_name).'.php';
    
    return new $class_name(func_get_arg(1), func_get_arg(2));
}